package 线程.zuoye;

public class zuoye3t {
    public static void main(String[] args) {
        //模拟买票
        zuoye3 pay=new zuoye3();
        Thread p1=new Thread(pay);
        p1.setName("黄牛");
        p1.start();
        Thread p2=new Thread(pay);
        p2.setName("小明");
        p2.start();
        Thread p3=new Thread(pay);
        p3.setName("小红");
        p3.start();
    }
}
